-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
applications: serial_lte_modem: Fix asserts when pressing power pin #21081
Conversation
CI InformationTo view the history of this post, clich the 'edited' button above Inputs:Sources:sdk-nrf: PR head: e21f687de5212f75dd5d2d666f29340c848f085e more detailssdk-nrf:
Github labels
List of changed files detected by CI (2)
Outputs:ToolchainVersion: 4ffa2202d5 Test Spec & Results: ✅ Success; ❌ Failure; 🟠 Queued; 🟡 Progress; ◻️ Skipped;
|
c3bf395
to
47c081e
Compare
You can find the documentation preview for this PR here. |
47c081e
to
466eb13
Compare
466eb13
to
e1fb005
Compare
|
e1fb005
to
616dd78
Compare
Asserts were enabled with PR nrfconnect#20040. This has caused an assert to occur when pressing power pin, because GPIO callback (power_pin_callback_wakeup) called slm_at_host_power_on, which called k_sleep(), which has an assert that it's not called from interrupt context. Added most of the wake up operation into a worker. Jira: LRCS-70 Signed-off-by: Tommi Rantanen <tommi.rantanen@nordicsemi.no>
Add command for toggling power pin. Also adding main command for operations done in SLM shell device. Toggling is done as follows: "slmsh powerpin" Jira: LRCS-84 Signed-off-by: Tommi Rantanen <tommi.rantanen@nordicsemi.no>
616dd78
to
e21f687
Compare
Asserts were enabled with PR #20040.
This has caused an assert to occur when pressing power pin, because GPIO callback (
power_pin_callback_wakeup()
) calledslm_at_host_power_on()
, which calledk_sleep()
, which has an assert that it's not called from interrupt context. Added most of the wake up operation into a worker.Also added a command to
modem_slm
library for toggling power pin. In addition, adding main command for operations done in SLM shell device. Toggling power pin is done as follows:"slmsh powerpin"
I have some follow-up PRs for SLM shell so I'll also update its documentation then regarding the new command. I'd like to get these changes in whenever they are technically OK so that test engineers can proceed testing the power pin.
Jira: LRCS-70
Jira: LRCS-84